package server

import (
	"HelloWorld/webbook/internal/web"

	"github.com/gin-gonic/gin"
)

func NewWebBookServer() *gin.Engine{
	server := gin.Default()
	registerUserRoutes(server)
	return server
}

func registerUserRoutes(server *gin.Engine) {
	user := &web.UserHandler{}
	ug := server.Group("/user")
	ug.GET("/profile", user.GetName)
}
